require("../css/advertising.less")
document.ready(function(){
    let countNum=document.querySelector("#countNum")
    let countBtn=document.querySelector("#countBtn")
    let num=5
    countNum.textContent=num
    let timer=setInterval(function(){
        num--
        if(num==0){
            clearInterval(timer)
            location.href="./login.html"
            return;
        }
        countNum.textContent=num
    },1000)
    countBtn.addEventListener("click",function(){
        clearInterval(timer)
        location.href="./login.html"
    })
})